#ifndef EDITOR_MODE_MANAGER
#define EDITOR_MODE_MANAGER 1

#include<iostream>
#include<vector>

#include <osg/Node>
#include <osg/Group>
#include <osg/StateSet>
class EditorModeManager : public osg::Node
{
	
public:
	~EditorModeManager();
	static EditorModeManager* instance();

	void setEditingNode(osg::ref_ptr<osg::Node> editing_node);

	void enterEditing();

	void quitEditing();
protected:

private:
	EditorModeManager();
	static EditorModeManager* _instance;
	osg::ref_ptr<osg::Node> _editing_node;
	osg::ref_ptr<osg::Group> _scene_viewer_model_root;
	osg::ref_ptr<osg::Group> _temp_group_node;
};

#endif //!EDITOR_MODE_MANAGER